package com.jic.manager.impl;

import com.jic.manager.mapper.ChannelCategoryMapper;
import com.jic.manager.entity.ChannelCategory;
import com.jic.conf.request.ChannelRequest;
import com.jic.manager.service.ChannelCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 渠道类目关联表
 * @author : 
 * @email : 
 * @since : 2020-02-07 04:29:32
 * @version : v1.0.0
 */
@Service
public class ChannelCategoryServiceImpl implements ChannelCategoryService {

    @Autowired
    private ChannelCategoryMapper channelCategoryMapper;

    @Override
    public long insert(ChannelRequest channelCategory) {
        long flag = channelCategoryMapper.insert(channelCategory);
        return flag;
    }

    @Override
    public long delete(Long id) {
        return channelCategoryMapper.delete(id);
    }

    @Override
    public long update(ChannelRequest channelCategory) {
        return channelCategoryMapper.update(channelCategory);
    }

    @Override
    public ChannelCategory queryByPrimaryKey(Long id){
        return channelCategoryMapper.queryByPrimaryKey(id);
    }

    @Override
    public List<ChannelCategory> query(ChannelCategory channelCategory){
        return channelCategoryMapper.query(channelCategory);
    }

}